const db = require('../db/index');
const DataType = require('sequelize');
/**es6继承 会员卡表*/
class Setting extends DataType.Model {}
Setting.init(
    {
        id: {
            type: DataType.INTEGER,
            allowNull: false,
            autoIncrement: true,
            primaryKey: true
        },
        share: {
            type: DataType.INTEGER,
            comment: '邀请最多获取的次数',
            defaultValue: 0,
            allowNull: false
        },
        wash: {
            type: DataType.INTEGER,
            comment: '每天最多次',
            defaultValue: 0,
            allowNull: false
        }
    },
    {
        tableName: 'setting',
        modelName: 'setting',
        sequelize: db
    }
);
// Setting.sync({ force: true });
exports['default'] = Setting;
